package cn.edu.jmu.oelp.pojo;

import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
 * @author huanghongbe
 */
public class ReqRelation {
    private Long startId;
    private String startContent;
    private Long endId;
    private String endContent;
    private int articleId;
    private int paragraphsId;
    private int userId;
    //关系类型
    private String type;

    @Override
    public String toString() {
        return "ReqRelation{" +
                "startId=" + startId +
                ", startContent='" + startContent + '\'' +
                ", endId=" + endId +
                ", endContent='" + endContent + '\'' +
                ", articleId=" + articleId +
                ", paragraphsId=" + paragraphsId +
                ", userId=" + userId +
                ", type='" + type + '\'' +
                '}';
    }

    public Long getStartId() {
        return startId;
    }

    public void setStartId(Long startId) {
        this.startId = startId;
    }

    public Long getEndId() {
        return endId;
    }

    public void setEndId(Long endId) {
        this.endId = endId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStartContent() {
        return startContent;
    }

    public void setStartContent(String startContent) {
        this.startContent = startContent;
    }

    public String getEndContent() {
        return endContent;
    }

    public void setEndContent(String endContent) {
        this.endContent = endContent;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public int getParagraphsId() {
        return paragraphsId;
    }

    public void setParagraphsId(int paragraphsId) {
        this.paragraphsId = paragraphsId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public ReqRelation() {
    }

    public ReqRelation(Long startId, Long endId, String type) {
        this.startId = startId;
        this.endId = endId;
        this.type = type;
    }

    public ReqRelation(String startContent, String endContent, int articleId, int paragraphsId, int userId, String type) {
        this.startContent = startContent;
        this.endContent = endContent;
        this.articleId = articleId;
        this.paragraphsId = paragraphsId;
        this.userId = userId;
        this.type = type;
    }
}
